package com.aaa.order.service.impl;

import com.aaa.entity.LoginLog;
import com.aaa.entity.Order;
import com.aaa.order.dao.OrderEchartDao;
import com.aaa.order.service.OrderEchartService;
import com.aaa.vo.Result;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author 崔灿
 * @Date 2023/03/02 09:38
 * @ClassName OrderEchartServiceImpl
 * @Description
 * @Version 1.0
 */

@Service
public class OrderEchartServiceImpl extends ServiceImpl<OrderEchartDao, Order> implements OrderEchartService {

    @Autowired
    private OrderEchartDao orderEchartDao;
    @Override
    public Result OrderEchart() {
        List<Order> orders = orderEchartDao.selectAll();
        return new Result(2000,"查询成功",orders);
    }
}
